import { Component, OnInit } from '@angular/core';
import { Response } from '@angular/http';
import {ThirdServerService} from '../../../../service/thirdserver.service';

@Component({
  selector: 'app-user-third-service',
  templateUrl: './user-third-service.component.html',
  styleUrls: ['./user-third-service.component.less'],
  providers: [ThirdServerService]
})
export class UserThirdServiceComponent implements OnInit {
  servers: any;
  constructor(private thirdServerService: ThirdServerService) { }

  ngOnInit() {
    this.thirdServerService.getThirdServer().subscribe(
      (response: Response) => {
        const data = response.json();
        this.servers = data.service;
      }
    );
  }

}
